from flask import Flask
from flask import request
from flask import render_template


app = Flask(__name__)


@app.route('/moban1/')
def moban1():
    name = 'fbh'
    hight = 185
    connect = {
        'aihao':'hahha',
        'bir':'2020-10-5',
        'dic':{
            'x':1,
            'y':5123221
            }
            }
    lll = {
        'op':666,
        'ui':555,
        'qwq':{'awa':789}
    }


    return render_template('moban12.html',name=name,hight=hight,connect=connect,lll=lll)  # 三种传参方式


@app.route('/moban2/')
def moban2():
    return render_template('moban2.html')  # 前端用url_for 进行页面跳转







if __name__ == '__main__':
    app.run()